﻿using System;
using System.Collections.Generic;
using System.Text;
using ESRI.ArcGIS.Geodatabase;
using System.Windows.Forms;

namespace Tayninh2011
{
    class TnThuaFactory
    {
        ITnToolsWorkspace toolWsp = new TnTools();
        public TnThua GetThua(string k, IWorkspaceEdit wsp)
        {
            switch (k)
            {
                case "3010":
                    {
                        
                        return new TnThua3010(toolWsp.OpenFeatureClassFromSDE(wsp,"tn_thua"));
                    }
                case "3020":
                    {
                        
                        return new TnThua3020(toolWsp.OpenFeatureClassFromSDE(wsp, "tn_thua"));
                    }
                default:
                    {
                        return null;
                    }
            }
        }
    }
}
